<!DOCTYPE html>
<html>
<head>
    <title>社区问答</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/strategyCatalogs.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>
</head>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col-2">
            <a href="/mine/profiles.html">
                <span><i class="fa fa-chevron-left fa-2x"></i></span>
            </a>
        </div>
        <div class="col-10">
            <div class="input-group-sm search">
                <input class="form-control searchBtn" placeholder="我的收藏">
            </div>
        </div>
    </div>
</div>
<div class="container news">
    <h4 class="type" style="color: red">游记</h4>
</div>
<HR style="FILTER: progid:DXImageTransform.Microsoft.Shadow(color:#987cb9,direction:145,strength:15)" width="80%"
    color=#987cb9 SIZE=1>

<div class="tab-content " id="travels">
    <div>
        <div render-loop="list">
            <div class="container row comment">
                <div class="col-2 comment-head">
                    <img class="rounded-circle"
                         render-src="list.coverUrl">
                </div>
                <div class="col comment-right">
                    <p class="authorName"><span render-html="list.author.nickName">dafei</span></p>
                    <div class="comment-content">
                        <a href="/travelContent.html?id=" render-fun="setHref" render-key="list.id">
                            <p render-html="list.title">我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好</p>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="container news">
    <h4 class="type" style="color: red">攻略</h4>
</div>
<HR style="FILTER: progid:DXImageTransform.Microsoft.Shadow(color:#987cb9,direction:145,strength:15)" width="80%"
    color=#987cb9 SIZE=1>

<div class="tab-content " id="details">
    <div>
        <div render-loop="list">
            <div class="container row comment">
                <div class="col-2 comment-head">
                    <img class="rounded-circle" render-src="list.coverUrl">
                </div>
                <div class="col comment-right">
                    <p class="authorName"><span render-html="list.type.name">dafei</span></p>
                    <div class="comment-content">
                        <a href="/strategyDetail.html?id=" render-fun="setHref" render-key="list.id">
                            <p render-html="list.title">我觉得很好</p>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="container news">
    <h4 class="type" style="color: red">日报</h4>
</div>
<HR style="FILTER: progid:DXImageTransform.Microsoft.Shadow(color:#987cb9,direction:145,strength:15)" width="80%"
    color=#987cb9 SIZE=1>

<div class="tab-content " id="dailies">
    <div >
        <div render-loop="list">
            <div class="container row comment">
                <div class="col-2 comment-head">
                    <img class="rounded-circle" render-src="list.coverUrl">
                </div>
                <div class="col comment-right">
                    <p class="authorName"><span render-html="list.createTime">dafei</span></p>
                    <div class="comment-content">
                        <a href="/dailyContent.html?id=" render-fun="setHref" render-key="list.id">
                            <p render-html="list.title">我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好我觉得很好</p>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $.get("/collect",function (data) {
            //渲染所有收藏
            console.log(data);
            $("#travels").renderValues({list:data.travels},{
                "setHref": function (item, value) {
                    $(item).attr("href", $(item).attr("href") + value)
                }
            });
            $("#dailies").renderValues({list:data.dailies},{
                "setHref": function (item, value) {
                    $(item).attr("href", $(item).attr("href") + value)
                }
            });
            $("#details").renderValues({list:data.details},{
                "setHref": function (item, value) {
                    $(item).attr("href", $(item).attr("href") + value)
                }
            });
        });
    })
</script>
</body>
</html>